#include<iostream>
#include<vector>
using namespace std;

void printvec(vector<int>& v)
{
	for (auto it = v.begin(); it != v.end(); it++)
	{
		cout << *it << " ";
	}
}
void test01()
{
	vector<int> v1;
	for (int i = 0; i < 10; i++)
	{
		v1.push_back(i);
	}
	printvec(v1);

	vector<int> v2;
	v2 = v1;
	printvec(v2);
	
	vector<int> v3;
	v3.assign(v2.begin(), v2.end());
	printvec(v3);


}

int main()
{
	test01();
	return 0;
}	